package com.ruixin.mvc.annotation;

import com.ruixin.mvc.config.RequestType;

import java.lang.annotation.*;

@Target({ElementType.METHOD,ElementType.TYPE})
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@RequestMapping
public @interface GetMapping {

    //请求url
    String[] value() default {};

    //支持的请求类型
    RequestType[] type() default RequestType.GET;

    boolean jsonResult() default false;
}
